import request from '@/utils/request'

// 查询商品类型字段列表
export function listParam(query) {
  return request({
    url: '/system/param/list',
    method: 'get',
    params: query
  })
}

// 查询商品类型字段详细
export function getParam(goodsTypeParamId) {
  return request({
    url: '/system/param/' + goodsTypeParamId,
    method: 'get'
  })
}

// 新增商品类型字段
export function addParam(data) {
  return request({
    url: '/system/param',
    method: 'post',
    data: data
  })
}

// 修改商品类型字段
export function updateParam(data) {
  return request({
    url: '/system/param',
    method: 'put',
    data: data
  })
}

// 删除商品类型字段
export function delParam(goodsTypeParamId) {
  return request({
    url: '/system/param/' + goodsTypeParamId,
    method: 'delete'
  })
}
